package 对象操作流;

import java.io.Serializable;

// 如果想要这个类的对象能被序列化那么这个类必须实现一个接口 Serializable
public class User implements Serializable {
    private  String  uesrname;
    private  String  password;

    public User() {
    }

    public User(String uesrname, String password) {
        this.uesrname = uesrname;
        this.password = password;
    }

    public String getUesrname() {
        return uesrname;
    }

    public void setUesrname(String uesrname) {
        this.uesrname = uesrname;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    @Override
    public String toString() {
        return "User{" +
                "uesrname='" + uesrname + '\'' +
                ", password='" + password + '\'' +
                '}';
    }
}
